﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace CSE445_Assignment2_ChickenSales
{
	

	public class cBuffer
	{
		private static int cells = cChickenFarm.NUM  - 1;

		public static Semaphore ourPool = new Semaphore(0, cells);       

	   public void startBuffer()
	   {
			ourPool.Release();
	   }
		public void orderEr(string sOrdid)
	   {
		   ourPool.WaitOne();
		   
		
		   ourPool.Release();
	   }
	}
}
